import http from '../common/http.js'
//查询首页分类
export const getIndexCategoryApi = ()=>{
	return http.get("/wxapi/allApi/getIndexCategory")
}
//查询首页列表
export const getIndexListApi = (parm)=>{
	return http.get("/wxapi/allApi/getIndex",parm)
}
//失物页面
export const getLostListApi = (parm)=>{
	return http.get("/wxapi/allApi/getLostList",parm)
}
//公告页面
export const getNoticeListApi = (parm)=>{
	return http.get("/wxapi/allApi/getNoticeList",parm)
}
//登录
export const loginApi = (parm)=>{
	return http.post("/wxapi/allApi/login",parm)
}
//注册页面班级下拉数据
export const getClassesListApi = ()=>{
	return http.get("/wxapi/allApi/getClassesList")
}
//注册
export const registerApi = (parm)=>{
	return http.post("/wxapi/allApi/register",parm)
}
//座位列表
export const getSeatListApi = (parm)=>{
	return http.get("/wxapi/allApi/getSeatList",parm)
}
//提交预约
export const selectSeatSaveApi = (parm)=>{
	return http.post("/wxapi/allApi/selectSeatSave",parm)
}
//根据id查询学生信息
export const getStuByIdApi = (stuId)=>{
	return http.get("/wxapi/allApi/getStuById",{
		stuId:stuId
	})
}
//根据id编辑学生信息
export const updateStuByIdApi = (parm)=>{
	return http.post("/wxapi/allApi/updateStuById",parm)
}
//根据id查询学生预约列表
export const getMySeatListApi = (parm)=>{
	return http.get("/wxapi/allApi/getMySeatList",parm)
}
//取消预约
export const cancelApi = (parm)=>{
	return http.post("/wxapi/allApi/cancel",parm)
}
//签到
export const signApi = (parm)=>{
	return http.post("/wxapi/allApi/sign",parm)
}
//签退
export const signOutApi = (parm)=>{
	return http.post("/wxapi/allApi/signOut",parm)
}
//根据id查询学生预约记录列表
export const getMySeatHistryListApi = (parm)=>{
	return http.get("/wxapi/allApi/getMySeatHistryList",parm)
}
//提交反馈
export const addSuggestionApi = (parm)=>{
	return http.post("/wxapi/allApi/addSuggestion",parm)
}
//修改密码
export const updatePasswordApi = (parm)=>{
	return http.post("/wxapi/allApi/updatePassword",parm)
}